<font color="#FFFFFF">
<?php
	require "../classes/ReportesConsultas.php";						
					$profile=get_object_vars(unserialize($_SESSION['userProfile']));
					$idHotel = $profile['data']['id_procedencia'];

	echo	"<tr><td class='formTitle' valign='top'>";
						
							$tipoReser = $_POST["tipoReservacionConsulta"];
							$reportes=new ReportesConsultas();
							
							if($tipoReser  == "Efectiva"){
								echo "Reservaciones Efectivas";
								$reservaciones = $reportes->getReservadas($idHotel);
							}else if($tipoReser  == "CanceladaCargo"){
								echo "Reservaciones Canceladas Con Cargo";
								$reservaciones = $reportes->getCanceladasCargo($idHotel);
							}else if($tipoReser  == "CanceladaSinCargo"){
								echo "Reservaciones Canceladas Sin Cargo";
								$reservaciones = $reportes->getCanceladasSinCargo($idHotel);
							}else if($tipoReser  == "Negadas"){
								echo "Reservaciones Negadas";
								$reservaciones = $reportes->getNegadas($idHotel);
							}

	echo	"	<hr />
			</td></tr>
			<tr height='100%'><td valign='top' align='center'>
			";
							
?>
	<style type="text/css">
    	@import url(../css/reports.css);
    </style>
                    <table class="report" width="650" border="1" align="center">
                      <tr>
                        <th class="formLabel" scope="col">Cliente</th>
                        <th class="formLabel" scope="col">Agencia</th>
                        <th class="formLabel" scope="col">Fecha Reservaci&oacute;n</th>
                        <th class="formLabel" scope="col">Solicitud Especial</th>
                        <th class="formLabel" scope="col">Costo</th>
                        <?php
	                        if($tipoReser  == "CanceladaCargo"){
		                        echo "<th class='formLabel' scope='col'>Cargo por Cancelaci&oacute;n</th>";
							}
						?>
                      </tr>
                      <?php
					  		foreach($reservaciones as $res){
							echo "
							  <tr>
								<td nowrap=\"nowrap\">{$res['Cliente']}&nbsp;</td>
								<td nowrap=\"nowrap\">{$res['Agencia']}&nbsp;</td>
								<td nowrap=\"nowrap\">{$res['Fecha']}&nbsp;</td>
								<td nowrap=\"nowrap\">{$res['SolEspecial']}&nbsp;</td>
								<td nowrap=\"nowrap\">\${$res['Costo']}&nbsp;</td>";

								if($tipoReser  == "CanceladaCargo"){
									echo "                        <td>\${$res['Cargo']}</td>";
								}
								
							echo "</tr>";
							}
						?>
                    </table>
<?php 
	echo "</td></tr>";
?>